package com.mehdiuz.backend.commons.utils;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(20000,"成功"),
    FAIL(20100, "失败"),

    SERVICE_ERROR(50000, "服务异常"),

    DATA_ERROR(40000, "数据异常"),
    ILLEGAL_REQUEST(40100, "非法请求"),
    REPEAT_SUBMIT(40200, "重复提交"),
    ARGUMENT_VALID_ERROR(40300, "参数校验异常"),

    LOGIN_AUTH(20200, "未登陆"),
    PERMISSION(20300, "没有权限"),
    ACCOUNT_ERROR(21000, "账号不正确"),
    PASSWORD_ERROR(21100, "密码不正确"),
    LOGIN_MOBILE_ERROR( 21200, "账号不正确"),
    ACCOUNT_STOP( 21300, "账号已停用"),
    NODE_ERROR( 21400, "该节点下有子节点，不可以删除")
    ;

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
